package cn.zswltech.gruul.common.dal.dao;

import cn.zswltech.gruul.common.dal.tkmybatis.IMapper;
import cn.zswltech.gruul.common.entity.CustomTreeMenuRefDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface CustomTreeMenuRefDOMapper extends IMapper<CustomTreeMenuRefDO> {

    List<CustomTreeMenuRefDO> queryByCustomTreeIdView(Long id);

    List<CustomTreeMenuRefDO> queryByCustomTreeId(Long id);

    void deleteByCustomTreeId(Long id);

    void deleteByMenuId(Long menuId);

    void deleteByCustomTreeMenuId(@Param("customTreeId") Long customTreeId, @Param("menuId") Long menuId);

    void updateSort(CustomTreeMenuRefDO customTreeMenuRefDO);

    CustomTreeMenuRefDO queryByIds(@Param("menuId") Long menuId, @Param("customTreeId") Long customTreeId);
}